package jaux.tank.admin.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.bind.DefaultValue;
import org.springframework.stereotype.Component;

import lombok.Getter;
import lombok.Setter;
@Component
@ConfigurationProperties(prefix = "tank.awsfs")
@Getter @Setter
public class AwsFileStorageProperties {

    /**
     * Amazon S3 access key.
     */
    String accessKey;

    /**
     * Amazon S3 secret access key.
     */
    String secretAccessKey;

    /**
     * Amazon S3 region.
     */
    String region;

    /**
     * Amazon S3 bucket name.
     */
    String bucket;

    /**
     * Amazon S3 chunk size (kB).
     */
    int chunkSize = 8192;

    /**
     * Custom S3 storage endpoint URL.
     */
    String endpointUrl = "";

}